package com.weed.net.demo;

import java.net.MalformedURLException;
import java.net.URL;

import com.weed.net.Browser;
import com.weed.net.Request;
import com.weed.net.Response;

public class Sample1 {
	public static void main(String[] args){
		URL url = null;
		try {
			url = new URL("http://www.163.com/");
			Request request = Browser.open(url);
			Response respone= request.send("HELLO world!", "POST", null);
			if(respone.getCode() ==0)
				System.err.println(respone.getData());
			
		} catch (Exception e) {e.printStackTrace();}		
	}
}
